Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce copying of large messages while sending #48

Merged
merged 2 commits into from
Nov 16, 2021
Merged

reduce copying of large messages while sending #48

merged 2 commits into from
Nov 16, 2021

Conversation

tanmaykm
Copy link
Member

This change avoids copying entire large messages into memory while sending. Instead of earlier approach of chunking the entire message before starting to send, we now chunk as we proceed with sending message over the channel. The memory overhead is limited to the sendq size.

@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2021

Codecov Report

Merging #48 (2feb6a5) into master (4388aec) will increase coverage by 0.69%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   82.02%   82.71%   +0.69%     
==========================================
  Files           9        9              
  Lines        1029     1030       +1     
==========================================
+ Hits          844      852       +8     
+ Misses        185      178       -7     
Impacted Files Coverage Δ
src/protocol.jl 87.50% <92.59%> (+0.66%) ⬆️
src/types.jl 96.98% <100.00%> (+0.66%) ⬆️
src/convert.jl 100.00% <0.00%> (+14.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4388aec...2feb6a5. Read the comment docs.

This change avoids copying entire large messages into memory while sending. Instead of earlier approach of chunking the entire message before starting to send, we now chunk as we proceed with sending message over the channel. The memory overhead is limited to the sendq size.
now that CI is moved to github workflows, we don't need them
@tanmaykm tanmaykm merged commit f596fe4 into master Nov 16, 2021
@delete-merged-branch delete-merged-branch bot deleted the tan/misc branch November 16, 2021 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants